  <tr>
    <td align="left" valign="top">
    <div class="block_box">
     <div class="block_top"><div></div></div>
        <div class="block_content">
        <h2>搜索"<%= params[:q]%>"结果</h2>
        <% if params[:search_type] == 'id' %>
           <% if @post.nil? %>
              <br/>
              <br/>
              <br/>
              <br/>
              <p align="center">没有找到ID为<%= params[:q]%>有关的帖子!</p>
              <br/>
              <br/>
              <br/>
              <br/>
           <% else %>
           <%= link_to "#{@post.title}", admin_post_path(@post) %>
           <% end %>
        <% end %>
        <% if params[:search_type] == 'content' %>
           <% if @posts.nil? || @posts.empty?%>
              <br/>
              <br/>
              <br/>
              <br/>
              <p align="center">没有找到与<%= params[:q]%>有关的帖子!</p>
              <br/>
              <br/>
              <br/>
              <br/>
           <% else %>
           <%= render :partial => 'posts', :object => @posts%>
           <% end %>
        <% end %>
        </div>
     <div class="block_bottom"><div></div></div>
    </div>
 </td>
    <td width="30%" align="left" valign="top">
 
 <div class="block_box">
     <div class="block_top"><div></div></div>
        <div class="block_content">
       <% form_tag search_admin_posts_path, :method => :get do -%>
         <input name="q" type="text" size="32" maxlength="72" value="" id="page_focus"/><br/>
         <input id="search_type_id" name="search_type" type="radio" value="id" />ID
         <input id="search_type_content" name="search_type" type="radio" value="content" />内容
         <input type="submit" value="搜索"/>
       <% end -%>
   </div>
     <div class="block_bottom"><div></div></div>
 </div>
 <br/>
 
 </td>
</tr>